package olegroshka.src.com.bofa.olegroshka;

import java.io.IOException;
import java.io.InputStream;
import java.util.logging.LogManager;

public class App {

	static {
		initializeLogging();
	}

	private static void initializeLogging() {
		InputStream in = 
				ClassLoader.getSystemResourceAsStream("olegroshka/src/input/logging.properties");
		if( in == null ) {
			throw new IllegalStateException("Can't load logging.properties file from resources."); 
		}
		
		try {
			LogManager.getLogManager().readConfiguration(in);
			in.close();
		} catch (SecurityException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
	
	/**
	 * @param args
	 */
	public static void main(String[] args) {

	}

}
